<template>
    {{ name }}
    <Son @getName="getName"/>
</template>

<script>
import Son from './son.vue'
export default {
  name: 'props',
  components: { Son },
  data () {
    return {
      name: 'leyo'
    }
  },
  methods: {
    getName (val) {
      console.log('val', val)
      this.name = val
    }
  }
}
</script>
